package database

import (
	"database/sql"
	"fmt"

	_ "github.com/go-sql-driver/mysql"
)

func connect() *sql.DB {
	const conStr = "root:z@12345678@tcp(47.94.236.48:3306)/gorm"
	db, err := sql.Open("mysql", conStr)
	if err != nil {
		panic(err.Error())
	}

	fmt.Println("connect success", db)
	return db
}
